void add_light(vector& p,vector& c,float r)
Parameter | Type | Description |
---|---|---|
p | vector& | light position |
c | vector& | light color |
r | float | light radius |
None
This function adds a new light to the light_vertex array of lights. If the maximum number of hardware lights is exceeded, the light is not added.